package com.leonzx.base.entity.system;

import com.leonzx.base.entity.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * @Author:李晓雷
 * @Description:
 * @Date: 18/07/23 15:51
 */
@Table(name = "base_chat_body")
public class ChatBody extends BaseEntity {
    @Column(name = "from_id")
    private String from_id;
    @Column(name = "to_id")
    private String to_id;
    @Column(name = "msg_type")
    private String msg_type;
    @Column(name = "chat_type")
    private String chat_type;
    @Column(name = "content")
    private String content;
    @Column(name = "group_id")
    private String group_id;
    @Column(name = "json")
    private String json;
    @Column(name = "cmd")
    private String cmd;

    @Transient
    private String createTimeStr;
    @Transient
    private String createUserName;
    @Transient
    private String landUserId;
    @Transient
    private String avatar;

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getLandUserId() {
        return landUserId;
    }

    public void setLandUserId(String landUserId) {
        this.landUserId = landUserId;
    }

    public String getCmd() {
        return cmd;
    }

    public void setCmd(String cmd) {
        this.cmd = cmd;
    }

    public String getFrom_id() {
        return from_id;
    }

    public void setFrom_id(String from_id) {
        this.from_id = from_id;
    }

    public String getTo_id() {
        return to_id;
    }

    public void setTo_id(String to_id) {
        this.to_id = to_id;
    }

    public String getMsg_type() {
        return msg_type;
    }

    public void setMsg_type(String msg_type) {
        this.msg_type = msg_type;
    }

    public String getChat_type() {
        return chat_type;
    }

    public void setChat_type(String chat_type) {
        this.chat_type = chat_type;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getGroup_id() {
        return group_id;
    }

    public void setGroup_id(String group_id) {
        this.group_id = group_id;
    }

    public String getJson() {
        return json;
    }

    public void setJson(String json) {
        this.json = json;
    }

    public String getCreateTimeStr() {
        return createTimeStr;
    }

    public void setCreateTimeStr(String createTimeStr) {
        this.createTimeStr = createTimeStr;
    }

    public String getCreateUserName() {
        return createUserName;
    }

    public void setCreateUserName(String createUserName) {
        this.createUserName = createUserName;
    }
}
